package com.xzakota.minesweeper.ui.dialog.templae;

import com.xzakota.minesweeper.util.ExceptionUtils;

import java.awt.*;

/**
 * 消息对话框
 *
 * @author Xzakota
 */
public class MessageDialog extends AbstractBaseDialog {
    public MessageDialog(String message) {
        this("提示", message);
    }

    public MessageDialog(String title, String message) {
        this(null, title, message);
    }

    public MessageDialog(Window parent, String title, String message) {
        super(parent);

        setTitle(title);
        setMessage(message);

        style1Buttons();
    }

    public MessageDialog(Throwable t) {
        this(ExceptionUtils.getExceptionStackTrace(t));
    }
}
